<template>
  <div>
    hello word
  </div>
</template>

<script>
import axios from 'Axios'
export default {
  name: 'HelloWorld',
  data () {
    return {
      msg: 'Welcome to Your Vue.js App',
      user: {
        phone: '13321713856',
        password: '123456',
      }
    }
  },
  created () {
  },
  methods: {
    login () {
      axios({
        url: 'http://119.23.34.123:8087/parents.user/pwdlogin',
        method: 'post',
        data: this.user,
        // success: () => {}, // axios没有jq的ajax的success的回调
      }).then(({ data: res }) => {
        console.log(res)
      })
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
</style>
